package cn.fz.relaxation.service;

import cn.fz.relaxation.common.model.dto.HotSearchDTO;
import cn.fz.relaxation.common.model.dto.HotSearchDetailDTO;
import cn.fz.relaxation.common.page.Page;
import cn.fz.relaxation.dao.entity.RealxHotSearchDO;

import java.util.List;

public interface RelaxHotSearchService {
    /**
     * 保存热搜数据到数据库
     * @param searchDOList List<RealxHotSearchDO>
     * @return Boolean
     */
    Boolean saveCache2DB(List<RealxHotSearchDO> searchDOList);

    HotSearchDetailDTO queryByType(String type);

    Page<HotSearchDTO> pageQueryHotSearchByTitle(String title, Integer pageNum, Integer pageSize);
}
